package com.neusoft.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.neusoft.po.Orders;

@Mapper
public interface OrdersMapper {

	int createOrders(Orders orders);
	
	List<Orders> listOrdersByUserId(String userId);
	
	@Select("SELECT orderId FROM orders ORDER BY orderId DESC LIMIT 1")
	int latest();

	Orders getOrdersById(int orderId);

	int setOrderSuccess(int orderId);

}
